Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Remove AnalysisMode
Browse files Browse the repository at this point in the history
could never be enabled anyway
  • Loading branch information
metatablecat committed Aug 4, 2024
1 parent 7b524ff commit e90de90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
7 changes: 0 additions & 7 deletions src/lib/Class.luau
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,5 @@ return function(service, name, createObject)
end

table.freeze(params)

if not Common.AnalysisMode then
if service.ClassAdded then
service:ClassAdded(params)
end
end

return params
end
3 changes: 0 additions & 3 deletions src/lib/Common.luau
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ Common.Flags = {
DONT_ASSIGN_OBJECT_MT = false,
}

-- Analysis mode, disables spawning
Common.AnalysisMode = false

-- Storage
Common.WelcomeMessage = `Catwork🐈 Loaded. API Version - {VERSION}. meow :3`
Common.Version = VERSION
Expand Down
10 changes: 3 additions & 7 deletions src/lib/Service.luau
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ end
local function createObjectForService(params, service)
local o = Object(params, service, OBJECT_PRIVATE)

if not Common.AnalysisMode then
Dispatcher.initObjectState(o)
local objAdded = service.ObjectAdded
if objAdded then task.spawn(objAdded, service, o) end
end
Dispatcher.initObjectState(o)
local objAdded = service.ObjectAdded
if objAdded then task.spawn(objAdded, service, o) end

return o
end
Expand Down Expand Up @@ -93,8 +91,6 @@ return function(params)
end

function raw:SpawnObject(obj, xpcallHandler, asyncHandler)
if Common.AnalysisMode then return end

REFLECTION.CUSTOM(1, "Service.SpawnObject", self, SERVICE_REFLECTION_TEST)
REFLECTION.CUSTOM(2, "Service.SpawnObject", obj, OBJECT_REFLECTION_TEST)
REFLECTION.ARG(3, "Service.SpawnObject", REFLECTION.OPT_FUNCTION, xpcallHandler)
Expand Down

0 comments on commit e90de90

Please sign in to comment.