mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
remove print logging
This commit is contained in:
parent
805be8e231
commit
386fb6b057
1 changed files with 0 additions and 13 deletions
|
@ -46,7 +46,6 @@ public:
|
||||||
|
|
||||||
std::string getLuauDirectory(PathType type)
|
std::string getLuauDirectory(PathType type)
|
||||||
{
|
{
|
||||||
printf("GetLuauDirectory invoked\n");
|
|
||||||
std::string luauDirRel = ".";
|
std::string luauDirRel = ".";
|
||||||
std::string luauDirAbs;
|
std::string luauDirAbs;
|
||||||
|
|
||||||
|
@ -56,11 +55,9 @@ public:
|
||||||
luauDirAbs = *cwd;
|
luauDirAbs = *cwd;
|
||||||
for (int i = 0; i < 20; ++i)
|
for (int i = 0; i < 20; ++i)
|
||||||
{
|
{
|
||||||
printf("Luau dir abs >>> %s\n", luauDirAbs.c_str());
|
|
||||||
if (isDirectory(luauDirAbs + "/luau/tests") || isDirectory(luauDirAbs + "/Client/Luau/tests"))
|
if (isDirectory(luauDirAbs + "/luau/tests") || isDirectory(luauDirAbs + "/Client/Luau/tests"))
|
||||||
{
|
{
|
||||||
|
|
||||||
printf("isDirectory /Luau/tests OR /Client/Luau/tests \n");
|
|
||||||
if (isDirectory(luauDirAbs + "/Client/Luau/tests"))
|
if (isDirectory(luauDirAbs + "/Client/Luau/tests"))
|
||||||
{
|
{
|
||||||
luauDirRel += "/Client";
|
luauDirRel += "/Client";
|
||||||
|
@ -77,20 +74,10 @@ public:
|
||||||
|
|
||||||
luauDirRel += "/..";
|
luauDirRel += "/..";
|
||||||
std::optional<std::string> parentPath = getParentPath(luauDirAbs);
|
std::optional<std::string> parentPath = getParentPath(luauDirAbs);
|
||||||
if (parentPath)
|
|
||||||
{
|
|
||||||
printf("%s\n", (*parentPath).c_str());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Couldn't find parent path. LuauDirAbs: %s\n", luauDirAbs.c_str());
|
|
||||||
}
|
|
||||||
REQUIRE_MESSAGE(parentPath, "Error getting Luau path");
|
REQUIRE_MESSAGE(parentPath, "Error getting Luau path");
|
||||||
luauDirAbs = *parentPath;
|
luauDirAbs = *parentPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Could not find the directory
|
// Could not find the directory
|
||||||
REQUIRE_MESSAGE(false, "Error getting Luau path");
|
REQUIRE_MESSAGE(false, "Error getting Luau path");
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue