From 6c41181b8e39e776ea2f018bf383fed2782c3d4a Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 9 Nov 2016 14:27:42 -0600 Subject: [PATCH] syscall_emul: [patch 9/22] remove unused global variable (num_processes) --- src/arch/sparc/process.cc | 2 -- src/arch/x86/process.cc | 2 -- src/sim/process.cc | 3 --- 3 files changed, 7 deletions(-) diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc index 121f2f710..5c4f43b67 100644 --- a/src/arch/sparc/process.cc +++ b/src/arch/sparc/process.cc @@ -415,8 +415,6 @@ SparcProcess::argsInit(int pageSize) // Align the "stack_min" to a page boundary. stack_min = roundDown(stack_min, pageSize); - -// num_processes++; } void diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index 245fbebf4..dfbd41e4e 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -1031,8 +1031,6 @@ X86Process::argsInit(int pageSize, //Align the "stack_min" to a page boundary. stack_min = roundDown(stack_min, pageSize); - -// num_processes++; } void diff --git a/src/sim/process.cc b/src/sim/process.cc index 50ebc9cec..9510fd71d 100644 --- a/src/sim/process.cc +++ b/src/sim/process.cc @@ -90,9 +90,6 @@ using namespace std; using namespace TheISA; -// current number of allocated processes -int num_processes = 0; - static int openFile(const string& filename, int flags, mode_t mode) { -- 2.30.2