Skip to content

Commit

Permalink
zig fmt: don't compute a sha-256 for no reason
Browse files Browse the repository at this point in the history
I forgot to delete this code before pushing 2c96f19
  • Loading branch information
andrewrk committed May 30, 2018
1 parent ea58f4a commit d8699ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src-self-hosted/main.zig
Expand Up @@ -719,9 +719,6 @@ fn cmdFmt(allocator: &Allocator, args: []const []const u8) !void {
};
defer tree.deinit();

var old_digest: [256]u8 = undefined;
std.crypto.Sha256.hash(source_code, old_digest[0..]);

var error_it = tree.errors.iterator(0);
while (error_it.next()) |parse_error| {
const token = tree.tokens.at(parse_error.loc());
Expand Down

0 comments on commit d8699ae

Please sign in to comment.