cleanup: remove dead code in Api/Process.hpp, remove redundant logtest program
This commit is contained in:
@@ -12,4 +12,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define MONTAUK_BUILD_NUMBER 142
|
#define MONTAUK_BUILD_NUMBER 143
|
||||||
|
|||||||
@@ -230,15 +230,6 @@ namespace montauk::abi {
|
|||||||
char resolved[256];
|
char resolved[256];
|
||||||
if (!ResolveProcessPath(path, resolved, sizeof(resolved))) return -1;
|
if (!ResolveProcessPath(path, resolved, sizeof(resolved))) return -1;
|
||||||
|
|
||||||
bool isDriveRoot = false;
|
|
||||||
{
|
|
||||||
int prefixLen = 0;
|
|
||||||
if (ParseDrivePrefix(resolved, &prefixLen) >= 0 &&
|
|
||||||
resolved[prefixLen] == '/' && resolved[prefixLen + 1] == '\0') {
|
|
||||||
isDriveRoot = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ReadDir doubles as the directory-existence probe: it fails
|
// ReadDir doubles as the directory-existence probe: it fails
|
||||||
// for nonexistent paths and for regular files (directories are
|
// for nonexistent paths and for regular files (directories are
|
||||||
// not openable as files anymore, so the old open-based check
|
// not openable as files anymore, so the old open-based check
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
#include <montauk/syscall.h>
|
|
||||||
|
|
||||||
extern "C" void _start() {
|
|
||||||
|
|
||||||
montauk::write_log("testapp", "hello, logging world!");
|
|
||||||
|
|
||||||
montauk::exit(0);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user