From de05685e3d89d01a6c6101d18ad3be878921beeb Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 29 Jul 2018 11:07:05 -0700 Subject: [PATCH] fs.mitm: Remove shim for fsStorageGetSize, which was added to libnx --- stratosphere/fs_mitm/source/fs_shim.c | 33 --------------------------- stratosphere/fs_mitm/source/fs_shim.h | 1 - 2 files changed, 34 deletions(-) diff --git a/stratosphere/fs_mitm/source/fs_shim.c b/stratosphere/fs_mitm/source/fs_shim.c index 99a79fa2b..ebfae7ed6 100644 --- a/stratosphere/fs_mitm/source/fs_shim.c +++ b/stratosphere/fs_mitm/source/fs_shim.c @@ -235,39 +235,6 @@ Result fsFileOperateRange(FsFile* f, u32 op_id, u64 off, u64 len, FsRangeInfo *o } /* Missing FS Storage commands. */ -Result fsStorageGetSize(FsStorage* s, u64* out) { - IpcCommand c; - ipcInitialize(&c); - - struct { - u64 magic; - u64 cmd_id; - } *raw; - - raw = ipcPrepareHeader(&c, sizeof(*raw)); - - raw->magic = SFCI_MAGIC; - raw->cmd_id = 4; - - Result rc = serviceIpcDispatch(&s->s); - - if (R_SUCCEEDED(rc)) { - IpcParsedCommand r; - ipcParse(&r); - - struct { - u64 magic; - u64 result; - u64 size; - } *resp = r.Raw; - - rc = resp->result; - if (R_SUCCEEDED(rc) && out) *out = resp->size; - } - - return rc; -} - Result fsStorageOperateRange(FsStorage* s, u32 op_id, u64 off, u64 len, FsRangeInfo *out) { IpcCommand c; ipcInitialize(&c); diff --git a/stratosphere/fs_mitm/source/fs_shim.h b/stratosphere/fs_mitm/source/fs_shim.h index ce128729f..9030078e7 100644 --- a/stratosphere/fs_mitm/source/fs_shim.h +++ b/stratosphere/fs_mitm/source/fs_shim.h @@ -29,7 +29,6 @@ Result fsOpenDataStorageByDataIdFromDomain(Service* s, FsStorageId storage_id, u Result fsFileOperateRange(FsFile* f, u32 op_id, u64 off, u64 len, FsRangeInfo *out); /* Missing FS Storage commands. */ -Result fsStorageGetSize(FsStorage* s, u64* out); Result fsStorageOperateRange(FsStorage* s, u32 op_id, u64 off, u64 len, FsRangeInfo *out); #ifdef __cplusplus