mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Deprecate DCE:on (#13839)
This commit is contained in:
@@ -113,8 +113,6 @@
|
||||
## * `db_mysql module <db_mysql.html>`_ for MySQL database wrapper
|
||||
## * `db_postgres module <db_postgres.html>`_ for PostgreSQL database wrapper
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
import sqlite3
|
||||
|
||||
import db_common
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
## var userResponse: string
|
||||
## doAssert readLineFromStdin("How are you?:", line = userResponse)
|
||||
## echo userResponse
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(Windows):
|
||||
proc readLineFromStdin*(prompt: string): TaintedString {.
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
from posix import SocketHandle
|
||||
|
||||
const
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
import posix
|
||||
|
||||
const
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
# Dead code elimination ensures that we don't accidentally generate #includes
|
||||
# for files that might not exist on a specific platform! The user will get an
|
||||
# error only if they actually try to use the missing declaration
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@
|
||||
|
||||
# Where possible, contribute OS-independent procs in `os <os.html>`_ instead.
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
import posix
|
||||
|
||||
type Uname* = object
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
import posix
|
||||
|
||||
type
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
## Floating-point environment. Handling of floating-point rounding and
|
||||
## exceptions (overflow, division by zero, etc.).
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(Posix) and not defined(genode):
|
||||
{.passl: "-lm".}
|
||||
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
|
||||
include "system/inclrtl"
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
import nativesockets, os, strutils, times, sets, options, std/monotimes
|
||||
from ssl_certs import scanSSLCertificates
|
||||
export nativesockets.Port, nativesockets.`$`, nativesockets.`==`
|
||||
|
||||
@@ -45,9 +45,6 @@
|
||||
## * `parsexml module<parsexml.html>`_ for a XML / HTML parser
|
||||
## * `other parsers<lib.html#pure-libraries-parsers>`_ for other parsers
|
||||
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
{.push debugger: off.} # the user does not want to trace a part
|
||||
# of the standard library!
|
||||
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
include "system/inclrtl"
|
||||
import streams
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
{.push debugger: off.} # the user does not want to trace a part
|
||||
# of the standard library!
|
||||
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
|
||||
import strutils
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
proc expandTabs*(s: string, tabSize: int = 8): string {.noSideEffect,
|
||||
procvar.} =
|
||||
## Expand tab characters in `s` replacing them by spaces.
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
## * `unidecode module <unidecode.html>`_
|
||||
## * `encodings module <encodings.html>`_
|
||||
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
include "system/inclrtl"
|
||||
|
||||
type
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
## This module implements a small wrapper for some needed Win API procedures,
|
||||
## so that the Nim compiler does not depend on the huge Windows module.
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
import dynlib
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
|
||||
@@ -34,8 +34,6 @@
|
||||
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
# ****************************************************************************
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(windows):
|
||||
const dllname = "iup(|30|27|26|25|24).dll"
|
||||
elif defined(macosx):
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
{.push, callconv: cdecl.}
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when not defined(ODBCVER):
|
||||
const
|
||||
ODBCVER = 0x0351 ## define ODBC version 3.51 by default
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
## ./bin/nim c -d:ssl -p:. -r tests/untestable/tssl.nim
|
||||
## ./bin/nim c -d:ssl -p:. --dynlibOverride:ssl --passl:-lcrypto --passl:-lssl -r tests/untestable/tssl.nim
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
# The current PCRE version information.
|
||||
|
||||
const
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
# connection-protocol.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
# distribution, for details about the copyright.
|
||||
#
|
||||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user