summaryrefslogtreecommitdiff
path: root/firmware/stub/vboot_api_stub_static_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/stub/vboot_api_stub_static_sf.c')
-rw-r--r--firmware/stub/vboot_api_stub_static_sf.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/firmware/stub/vboot_api_stub_static_sf.c b/firmware/stub/vboot_api_stub_static_sf.c
deleted file mode 100644
index c266177d..00000000
--- a/firmware/stub/vboot_api_stub_static_sf.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- *
- * Workaround for TODO(crbug.com/437107). Remove this file when it's fixed.
- */
-
-#define _STUB_IMPLEMENTATION_
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "vboot_api.h"
-
-void *VbExMalloc(size_t size)
-{
- void *p = malloc(size);
-
- if (!p) {
- /* Fatal Error. We must abort. */
- abort();
- }
-
- return p;
-}
-void VbExFree(void *ptr)
-{
- free(ptr);
-}
-
-
-/*
- * This file should be used only when building the static version of futility,
- * so let's intentionally break any tests that link with it by accident.
- */
-int vboot_api_stub_check_memory(void)
-{
- return -1;
-}