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

Commit 85c65e98 authored by David Anderson's avatar David Anderson
Browse files

libsnapshot: Remove unused SupportsCopyOperation.

This function is never used. It was intended to allow update_engine to
unify all writes through ISnapshotWriter, but that never came to pass.

Bug: 280529365
Test: builds
Change-Id: I7e418ffee404cd63faa5a5659d8971988f8d0e03
parent 0ec71157
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -93,9 +93,6 @@ class ICowWriter {
    // Return number of bytes the cow image occupies on disk.
    virtual uint64_t GetCowSize() = 0;

    // Returns true if AddCopy() operations are supported.
    virtual bool SupportsCopyOperation() const { return true; }

    const CowOptions& options() { return options_; }

  protected:
+0 −3
Original line number Diff line number Diff line
@@ -31,9 +31,6 @@ class MockSnapshotWriter : public ISnapshotWriter {
    // Return number of bytes the cow image occupies on disk.
    MOCK_METHOD(uint64_t, GetCowSize, (), (override));

    // Returns true if AddCopy() operations are supported.
    MOCK_METHOD(bool, SupportsCopyOperation, (), (const override));

    MOCK_METHOD(bool, EmitCopy, (uint64_t, uint64_t, uint64_t), (override));
    MOCK_METHOD(bool, EmitRawBlocks, (uint64_t, const void*, size_t), (override));
    MOCK_METHOD(bool, EmitXorBlocks, (uint32_t, const void*, size_t, uint32_t, uint16_t),