Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f42140a authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Remove useless copy constructor of ProximityInfo

Change-Id: I56b4a99f670ad38708ad83d76b93a631295e3333
parent 32b56fd3
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -77,27 +77,6 @@ public class ProximityInfo {
        mNativeProximityInfo = createNativeProximityInfo();
    }

    // TODO: Remove this public constructor when the native part of the ProximityInfo becomes
    // immutable.
    // This public constructor aims only for test purpose.
    public ProximityInfo(ProximityInfo o) {
        mLocaleStr = o.mLocaleStr;
        mGridWidth = o.mGridWidth;
        mGridHeight = o.mGridHeight;
        mGridSize = o.mGridSize;
        mCellWidth = o.mCellWidth;
        mCellHeight = o.mCellHeight;
        mKeyboardMinWidth = o.mKeyboardMinWidth;
        mKeyboardHeight = o.mKeyboardHeight;
        mKeyHeight = o.mKeyHeight;
        mMostCommonKeyWidth = o.mMostCommonKeyWidth;
        mKeys = o.mKeys;
        mTouchPositionCorrection = o.mTouchPositionCorrection;
        mGridNeighbors = new Key[mGridSize][];
        computeNearestNeighbors();
        mNativeProximityInfo = createNativeProximityInfo();
    }

    public static ProximityInfo createDummyProximityInfo() {
        return new ProximityInfo("", 1, 1, 1, 1, 1, 1, EMPTY_KEY_ARRAY, null);
    }