Skip to content

Commit 1a4e3ab

Browse files
committed
Oops, there *are* clients of initGlobalStructure. Nuke the usage. We can
restore it if someone really wants, but it is effectively dead code.
1 parent 5eb2865 commit 1a4e3ab

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

platforms/RiscOS/vm/sqRPCMain.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ char * endChar;
688688

689689
int main(int argc, char *argv[]) {
690690
FILE *f;
691-
extern void initGlobalStructure(void);
692691
extern void setMetaKeyOptions(int swap);
693692
parseArguments( argv, argc, args);
694693

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

700699
InitRiscOS();
701-
initGlobalStructure();
702700

703701
dummyWimpPoll();
704702

platforms/minheadless/common/sqVirtualMachineInterface.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ int sqVMOptionInstallExceptionHandlers = 1;
9292
int sqVMOptionBlockOnError = 0;
9393
int sqVMOptionBlockOnWarn = 0;
9494

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

9897
extern void ioInitWindowSystem(sqInt headlessMode);
@@ -745,8 +744,6 @@ osvm_initialize(OSVMInstanceHandle *resultVMHandle)
745744
argVec = emptyArgumentVector;
746745
envVec = emptyEnvironmentVector;
747746

748-
initGlobalStructure();
749-
750747
/* Initialize the list of internal primitives. */
751748
ioInitializeInternalPluginPrimitives();
752749

platforms/unix/vm/sqUnixMain.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,8 +2032,6 @@ void imgInit(void)
20322032
# define mtfsfi(fpscr)
20332033
#endif
20342034

2035-
extern void initGlobalStructure(void); // this is effectively null if a global register is not being used
2036-
20372035
int
20382036
main(int argc, char **argv, char **envp)
20392037
{
@@ -2063,8 +2061,6 @@ main(int argc, char **argv, char **envp)
20632061
}
20642062
#endif
20652063

2066-
initGlobalStructure();
2067-
20682064
/* Allocate arrays to store copies of pointers to command line
20692065
arguments. Used by getAttributeIntoLength(). */
20702066

0 commit comments

Comments
 (0)