summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java
deleted file mode 100644
index 06ed351b5f..0000000000
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/MacPoint.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2002 IBM Corp. All rights reserved.
- * This file is made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Andre Weinand, OTI - Initial version
- */
-package org.eclipse.swt.internal.carbon;
-
-import org.eclipse.swt.graphics.Point;
-
-public class MacPoint {
-
- // 0: vertical
- // 1: horizontal
- private short[] fData= new short[2];
-
- public MacPoint() {
- }
-
- public MacPoint(short x, short y) {
- fData[0]= y;
- fData[1]= x;
- }
-
- public MacPoint(int x, int y) {
- fData[0]= (short) y;
- fData[1]= (short) x;
- }
-
- public MacPoint(Point p) {
- fData[0]= (short) p.y;
- fData[1]= (short) p.x;
- }
-
- public short[] getData() {
- return fData;
- }
-
- public int getX() {
- return fData[1];
- }
-
- public int getY() {
- return fData[0];
- }
-
- public Point toPoint() {
- return new Point(fData[1], fData[0]);
- }
-}