summaryrefslogtreecommitdiff
path: root/source/compiler/dtio.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/dtio.c')
-rw-r--r--source/compiler/dtio.c98
1 files changed, 0 insertions, 98 deletions
diff --git a/source/compiler/dtio.c b/source/compiler/dtio.c
index d027353c71ce..b596fda8b87d 100644
--- a/source/compiler/dtio.c
+++ b/source/compiler/dtio.c
@@ -162,10 +162,6 @@ static char *
DtTrim (
char *String);
-static void
-DtLinkField (
- DT_FIELD *Field);
-
static ACPI_STATUS
DtParseLine (
char *LineBuffer,
@@ -299,45 +295,6 @@ DtTrim (
/******************************************************************************
*
- * FUNCTION: DtLinkField
- *
- * PARAMETERS: Field - New field object to link
- *
- * RETURN: None
- *
- * DESCRIPTION: Link one field name and value to the list
- *
- *****************************************************************************/
-
-static void
-DtLinkField (
- DT_FIELD *Field)
-{
- DT_FIELD *Prev;
- DT_FIELD *Next;
-
-
- Prev = Next = AslGbl_FieldList;
-
- while (Next)
- {
- Prev = Next;
- Next = Next->Next;
- }
-
- if (Prev)
- {
- Prev->Next = Field;
- }
- else
- {
- AslGbl_FieldList = Field;
- }
-}
-
-
-/******************************************************************************
- *
* FUNCTION: DtParseLine
*
* PARAMETERS: LineBuffer - Current source code line
@@ -495,59 +452,6 @@ DtParseLine (
/******************************************************************************
*
- * FUNCTION: DtCreateField
- *
- * PARAMETERS: Name
- * Value
- * Line
- * Offset
- * Column
- * NameColumn
- *
- * RETURN: None
- *
- * DESCRIPTION: Create a field
- *
- *****************************************************************************/
-
-void
-DtCreateField (
- char *Name,
- char *Value,
- UINT32 Line,
- UINT32 Offset,
- UINT32 Column,
- UINT32 NameColumn)
-{
- DT_FIELD *Field = UtFieldCacheCalloc ();
-
-
- Field->StringLength = 0;
- if (Name)
- {
- Field->Name =
- strcpy (UtLocalCacheCalloc (strlen (Name) + 1), Name);
- }
-
- if (Value)
- {
- Field->StringLength = strlen (Value);
- Field->Value =
- strcpy (UtLocalCacheCalloc (Field->StringLength + 1), Value);
- }
-
- Field->Line = Line;
- Field->ByteOffset = Offset;
- Field->NameColumn = NameColumn;
- Field->Column = Column;
- DtLinkField (Field);
-
- DtDumpFieldList (AslGbl_FieldList);
-}
-
-
-/******************************************************************************
- *
* FUNCTION: DtGetNextLine
*
* PARAMETERS: Handle - Open file handle for the source file
@@ -840,7 +744,6 @@ DtGetNextLine (
case '\n':
- CurrentLineOffset = AslGbl_NextLineOffset;
AslGbl_NextLineOffset = (UINT32) ftell (Handle);
AslGbl_CurrentLineNumber++;
break;
@@ -882,7 +785,6 @@ DtGetNextLine (
/* Ignore newline, this will merge the lines */
- CurrentLineOffset = AslGbl_NextLineOffset;
AslGbl_NextLineOffset = (UINT32) ftell (Handle);
AslGbl_CurrentLineNumber++;
State = DT_NORMAL_TEXT;