From 8494f4125dd9d385b69ebd48e988deb3a601970f Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Sun, 23 Aug 2015 05:39:16 +0200 Subject: [PATCH] remove unused headers --- src/doc.h | 22 -------------------- src/root/async.h | 48 ------------------------------------------- src/root/checkedint.h | 24 ---------------------- 3 files changed, 94 deletions(-) delete mode 100644 src/doc.h delete mode 100644 src/root/async.h delete mode 100644 src/root/checkedint.h diff --git a/src/doc.h b/src/doc.h deleted file mode 100644 index 92f9a79e7209..000000000000 --- a/src/doc.h +++ /dev/null @@ -1,22 +0,0 @@ - -/* Compiler implementation of the D programming language - * Copyright (c) 1999-2014 by Digital Mars - * All Rights Reserved - * written by Walter Bright - * http://www.digitalmars.com - * Distributed under the Boost Software License, Version 1.0. - * http://www.boost.org/LICENSE_1_0.txt - * https://github.com/D-Programming-Language/dmd/blob/master/src/doc.h - */ - -#ifndef DMD_DOC_H -#define DMD_DOC_H - -#ifdef __DMC__ -#pragma once -#endif /* __DMC__ */ - -void escapeDdocString(OutBuffer *buf, size_t start); -void gendocfile(Module *m); - -#endif diff --git a/src/root/async.h b/src/root/async.h deleted file mode 100644 index 694e74118978..000000000000 --- a/src/root/async.h +++ /dev/null @@ -1,48 +0,0 @@ - -/* Copyright (c) 2009-2014 by Digital Mars - * All Rights Reserved, written by Walter Bright - * http://www.digitalmars.com - * Distributed under the Boost Software License, Version 1.0. - * (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) - * https://github.com/D-Programming-Language/dmd/blob/master/src/root/async.h - */ - -#ifndef ASYNC_H -#define ASYNC_H - -#if __DMC__ -#pragma once -#endif - - -/******************* - * Simple interface to read files asynchronously in another - * thread. - */ - -struct AsyncRead -{ - // Creates a new instance of a AsyncRead. `nfiles` is maximum - // number of files that can be queued for reading. - static AsyncRead *create(size_t nfiles); - - // Queues a file for reading. Can only be called before `start()`. - // Only `nfiles` can be added to the queue (`nfiles` is the - // parameter to `create()`). - void addFile(File *file); - - // Starts a background thread which reads (asynchronously) all queued files. - void start(); - - // Blocks the calling thread until the background thread - // finishes reading the i-th file. - int read(size_t i); - - // Frees the object returned by `AsyncRead::create()`. It is safe to call - // only after `read()` is called for all queued files, because it doesn't - // wait for the background thread to finish. - static void dispose(AsyncRead *); -}; - - -#endif diff --git a/src/root/checkedint.h b/src/root/checkedint.h deleted file mode 100644 index 17ee3418eeda..000000000000 --- a/src/root/checkedint.h +++ /dev/null @@ -1,24 +0,0 @@ - -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif -#include - - -int adds(int x, int y, bool& overflow); -int64_t adds(int64_t x, int64_t y, bool& overflow); -unsigned addu(unsigned x, unsigned y, bool& overflow); -uint64_t addu(uint64_t x, uint64_t y, bool& overflow); - -int subs(int x, int y, bool& overflow); -int64_t subs(int64_t x, int64_t y, bool& overflow); -unsigned subu(unsigned x, unsigned y, bool& overflow); -uint64_t subu(uint64_t x, uint64_t y, bool& overflow); - -int negs(int x, bool& overflow); -int64_t negs(int64_t x, bool& overflow); - -int muls(int x, int y, bool& overflow); -int64_t muls(int64_t x, int64_t y, bool& overflow); -unsigned mulu(unsigned x, unsigned y, bool& overflow); -uint64_t mulu(uint64_t x, uint64_t y, bool& overflow);