Skip to content

Commit

Permalink
Oops, there *are* clients of initGlobalStructure. Nuke the usage. We can
Browse files Browse the repository at this point in the history
restore it if someone really wants, but it is effectively dead code.
  • Loading branch information
eliotmiranda committed May 8, 2020
1 parent 5eb2865 commit 1a4e3ab
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions platforms/RiscOS/vm/sqRPCMain.c
Expand Up @@ -688,7 +688,6 @@ char * endChar;

int main(int argc, char *argv[]) {
FILE *f;
extern void initGlobalStructure(void);
extern void setMetaKeyOptions(int swap);
parseArguments( argv, argc, args);

Expand All @@ -698,7 +697,6 @@ extern void setMetaKeyOptions(int swap);
atexit(exit_function); // setup a clean exit function

InitRiscOS();
initGlobalStructure();

dummyWimpPoll();

Expand Down
3 changes: 0 additions & 3 deletions platforms/minheadless/common/sqVirtualMachineInterface.c
Expand Up @@ -92,7 +92,6 @@ int sqVMOptionInstallExceptionHandlers = 1;
int sqVMOptionBlockOnError = 0;
int sqVMOptionBlockOnWarn = 0;

extern void initGlobalStructure(void); // this is effectively null if a global register is not being used
extern void findExecutablePath(const char *localVmName, char *dest, size_t destSize);

extern void ioInitWindowSystem(sqInt headlessMode);
Expand Down Expand Up @@ -745,8 +744,6 @@ osvm_initialize(OSVMInstanceHandle *resultVMHandle)
argVec = emptyArgumentVector;
envVec = emptyEnvironmentVector;

initGlobalStructure();

/* Initialize the list of internal primitives. */
ioInitializeInternalPluginPrimitives();

Expand Down
4 changes: 0 additions & 4 deletions platforms/unix/vm/sqUnixMain.c
Expand Up @@ -2032,8 +2032,6 @@ void imgInit(void)
# define mtfsfi(fpscr)
#endif

extern void initGlobalStructure(void); // this is effectively null if a global register is not being used

int
main(int argc, char **argv, char **envp)
{
Expand Down Expand Up @@ -2063,8 +2061,6 @@ main(int argc, char **argv, char **envp)
}
#endif

initGlobalStructure();

/* Allocate arrays to store copies of pointers to command line
arguments. Used by getAttributeIntoLength(). */

Expand Down

0 comments on commit 1a4e3ab

Please sign in to comment.