Remove a few unused variables.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26249 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-07-04 16:10:25 +00:00
parent b8a6621507
commit e5f7642ca8
3 changed files with 0 additions and 13 deletions
-3
View File
@@ -127,8 +127,6 @@ allocate_cbuf_mem(size_t size)
cbuf *buffer = NULL; cbuf *buffer = NULL;
cbuf *lastBuffer = NULL; cbuf *lastBuffer = NULL;
cbuf *headBuffer = NULL; cbuf *headBuffer = NULL;
int i;
int count;
size_t foundSize; size_t foundSize;
size = PAGE_ALIGN(size); size = PAGE_ALIGN(size);
@@ -944,7 +942,6 @@ cbuf_test(void)
status_t status_t
cbuf_init(void) cbuf_init(void)
{ {
cbuf *buffer;
int i; int i;
// add the debug command // add the debug command
-5
View File
@@ -2336,8 +2336,6 @@ vm_copy_on_write_area(vm_cache* lowerCache)
{ {
vm_store *store; vm_store *store;
vm_cache *upperCache; vm_cache *upperCache;
vm_page *page;
status_t status;
TRACE(("vm_copy_on_write_area(cache = %p)\n", lowerCache)); TRACE(("vm_copy_on_write_area(cache = %p)\n", lowerCache));
@@ -3939,8 +3937,6 @@ vm_init(kernel_args *args)
status_t status_t
vm_init_post_sem(kernel_args *args) vm_init_post_sem(kernel_args *args)
{ {
vm_area *area;
// This frees all unused boot loader resources and makes its space available again // This frees all unused boot loader resources and makes its space available again
arch_vm_init_end(args); arch_vm_init_end(args);
unreserve_boot_loader_ranges(args); unreserve_boot_loader_ranges(args);
@@ -4605,7 +4601,6 @@ vm_soft_fault(addr_t originalAddress, bool isWrite, bool isUser)
vm_cache *topCache = vm_area_get_locked_cache(area); vm_cache *topCache = vm_area_get_locked_cache(area);
off_t cacheOffset = address - area->base + area->cache_offset; off_t cacheOffset = address - area->base + area->cache_offset;
int32 changeCount = addressSpace->change_count;
atomic_add(&area->no_cache_change, 1); atomic_add(&area->no_cache_change, 1);
// make sure the area's cache isn't replaced during the page fault // make sure the area's cache isn't replaced during the page fault
-5
View File
@@ -596,7 +596,6 @@ static int
dump_page_stats(int argc, char **argv) dump_page_stats(int argc, char **argv)
{ {
uint32 counter[8]; uint32 counter[8];
int32 totalActive;
addr_t i; addr_t i;
memset(counter, 0, sizeof(counter)); memset(counter, 0, sizeof(counter));
@@ -785,7 +784,6 @@ page_scrubber(void *unused)
snooze(100000); // 100ms snooze(100000); // 100ms
if (sFreePageQueue.count > 0) { if (sFreePageQueue.count > 0) {
cpu_status state;
vm_page *page[SCRUB_SIZE]; vm_page *page[SCRUB_SIZE];
int32 i, scrubCount; int32 i, scrubCount;
@@ -1432,8 +1430,6 @@ vm_page_schedule_write_page_range(struct vm_cache *cache, uint32 firstPage,
for (VMCachePagesTree::Iterator it for (VMCachePagesTree::Iterator it
= cache->pages.GetIterator(firstPage, true, true); = cache->pages.GetIterator(firstPage, true, true);
vm_page *page = it.Next();) { vm_page *page = it.Next();) {
bool dequeuedPage = false;
if (page->cache_offset >= endPage) if (page->cache_offset >= endPage)
break; break;
@@ -1669,7 +1665,6 @@ vm_page_reserve_pages(uint32 count)
vm_page * vm_page *
vm_page_allocate_page(int pageState, bool reserved) vm_page_allocate_page(int pageState, bool reserved)
{ {
ConditionVariableEntry freeConditionEntry;
page_queue *queue; page_queue *queue;
page_queue *otherQueue; page_queue *otherQueue;