Browse Source

Remove return after `unreachable`

gingerBill 5 years ago
parent
commit
a89633e3ed
2 changed files with 0 additions and 2 deletions
  1. 0 1
      core/os/os_darwin.odin
  2. 0 1
      core/os/os_linux.odin

+ 0 - 1
core/os/os_darwin.odin

@@ -416,7 +416,6 @@ get_current_directory :: proc() -> string {
 		resize(&buf, len(buf)+page_size);
 	}
 	unreachable();
-	return "";
 }
 
 set_current_directory :: proc(path: string) -> (err: Errno) {

+ 0 - 1
core/os/os_linux.odin

@@ -448,7 +448,6 @@ get_current_directory :: proc() -> string {
 		resize(&buf, len(buf)+page_size);
 	}
 	unreachable();
-	return "";
 }
 
 set_current_directory :: proc(path: string) -> (err: Errno) {