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

Commit 79ca0073 authored by Wei Jia's avatar Wei Jia
Browse files

Revert "Metadata: recycle Parcel"

This reverts commit e5a12e0d.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I24a4c274a3bc0d68d3c63ff701967ff3e4057983
parent e5a12e0d
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -272,15 +272,6 @@ import java.util.TimeZone;
    @UnsupportedAppUsage
    public Metadata() { }

    // Have to declare protected for finalize() since it is protected
    // in the base class Object.
    @Override
    protected void finalize() throws Throwable {
        if (mParcel != null) {
            mParcel.recycle();
        }
    }

    /**
     * Go over all the records, collecting metadata keys and records'
     * type field offset in the Parcel. These are stored in
@@ -427,10 +418,6 @@ import java.util.TimeZone;
            parcel.setDataPosition(pin);
            return false;
        }

        if (mParcel != null) {
            mParcel.recycle();
        }
        mParcel = parcel;
        return true;
    }