diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-22 14:06:57 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-22 14:08:08 -0700 |
| commit | dacd36ca9b193444e9e2ca3f132fccf3e08fb4f9 (patch) | |
| tree | 6dd4760054aeb789c1179dfd635d7b54acd74693 /src/introspect.zig | |
| parent | bf9a16a037e88d56bec3740698e3fcd34e9ad543 (diff) | |
| download | zig-dacd36ca9b193444e9e2ca3f132fccf3e08fb4f9.tar.gz zig-dacd36ca9b193444e9e2ca3f132fccf3e08fb4f9.zip | |
stage2: implement using the global cache dir
Diffstat (limited to 'src/introspect.zig')
| -rw-r--r-- | src/introspect.zig | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/introspect.zig b/src/introspect.zig index 067326ebb6..b75bf8f4b8 100644 --- a/src/introspect.zig +++ b/src/introspect.zig @@ -73,10 +73,3 @@ pub fn resolveGlobalCacheDir(allocator: *mem.Allocator) ![]u8 { return fs.getAppDataDir(allocator, appname); } - -pub fn openGlobalCacheDir() !fs.Dir { - var buf: [fs.MAX_PATH_BYTES]u8 = undefined; - var fba = std.heap.FixedBufferAllocator.init(&buf); - const path_name = try resolveGlobalCacheDir(&fba.allocator); - return fs.cwd().makeOpenPath(path_name, .{}); -} |
