Skip to content

Commit d1d97ec

Browse files
committed
cleanup
1 parent fc3c69a commit d1d97ec

8 files changed

Lines changed: 10 additions & 60 deletions

File tree

examples/secret_bot.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ public function getReportPeers()
5454
{
5555
return [self::ADMIN];
5656
}
57-
private $call;
5857
public function onStart(): void
5958
{
60-
$this->call = $this->requestCall(self::ADMIN)->play(
61-
new LocalFile('/home/daniil/Music/a.ogg')
62-
);
6359
}
6460
/**
6561
* Handle updates from users.

schemas

Submodule schemas updated 40 files

src/TL_file_ref_map_schema.json

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type": "Vector t"
2626
},
2727
{
28-
"id": "737228241",
28+
"id": "1923715664",
2929
"predicate": "fileReferenceMap",
3030
"params": [
3131
{
@@ -40,14 +40,6 @@
4040
"name": "db_schema_json",
4141
"type": "string"
4242
},
43-
{
44-
"name": "locations",
45-
"type": "Vector<Location>"
46-
},
47-
{
48-
"name": "sources",
49-
"type": "Vector<Source>"
50-
},
5143
{
5244
"name": "traversers_incoming",
5345
"type": "Vector<TraverserIncoming>"
@@ -67,44 +59,6 @@
6759
],
6860
"type": "FileReferenceMap"
6961
},
70-
{
71-
"id": "-1395917194",
72-
"predicate": "locationIncoming",
73-
"params": [
74-
{
75-
"name": "type",
76-
"type": "string"
77-
},
78-
{
79-
"name": "predicate",
80-
"type": "string"
81-
},
82-
{
83-
"name": "stored_constructor",
84-
"type": "string"
85-
}
86-
],
87-
"type": "Location"
88-
},
89-
{
90-
"id": "926510226",
91-
"predicate": "locationOutgoing",
92-
"params": [
93-
{
94-
"name": "type",
95-
"type": "string"
96-
},
97-
{
98-
"name": "predicate",
99-
"type": "string"
100-
},
101-
{
102-
"name": "stored_constructor",
103-
"type": "string"
104-
}
105-
],
106-
"type": "Location"
107-
},
10862
{
10963
"id": "1645615975",
11064
"predicate": "traverseParam",

src/TL_file_ref_map_schema.tl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ true#3fedd339 = True;
55
vector#1cb5c415 {t:Type} # [ t ] = Vector t;
66

77
// Root
8-
fileReferenceMap#2bf135d1 layer:int db_schema:string db_schema_json:string locations:Vector<Location> sources:Vector<Source> traversers_incoming:Vector<TraverserIncoming> traversers_outgoing:Vector<TraverserOutgoing> refresh_actions:Vector<RefreshAction> skipped_incoming_sources:Vector<SkippedSource> = FileReferenceMap;
9-
10-
// Locations
11-
locationIncoming#accbfe76 type:string predicate:string stored_constructor:string = Location;
12-
locationOutgoing#37396c92 type:string predicate:string stored_constructor:string = Location;
8+
fileReferenceMap#72a99250 layer:int db_schema:string db_schema_json:string traversers_incoming:Vector<TraverserIncoming> traversers_outgoing:Vector<TraverserOutgoing> refresh_actions:Vector<RefreshAction> skipped_incoming_sources:Vector<SkippedSource> = FileReferenceMap;
139

1410
// Traversers (incoming)
1511
traverseParam#62161b67 flags:# name:string is_flag:flags.0?true is_vector:flags.1?true type:string = TraverseParam;

src/file_ref_map.dat

-12.5 KB
Binary file not shown.

src/file_ref_map.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/FileRefExtractor/BuildMode/Ast.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ public function finalize(
128128
'layer' => $layer,
129129
'db_schema' => $dbSchema,
130130
'db_schema_json' => json_encode($dbSchemaJSON, flags: JSON_THROW_ON_ERROR),
131-
'locations' => $locations,
132-
'sources' => array_merge(...array_values($this->output)),
131+
//'locations' => $locations,
132+
//'sources' => array_merge(...array_values($this->output)),
133133
'traversers_incoming' => $incomingTraversalPairs,
134134
'traversers_outgoing' => $outgoingTraversalPairs,
135135
'skipped_incoming_sources' => $this->skipped,

tools/gen_filerefmap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ function generate(int $layer, string $schema): void
8686

8787
$start = min(214, array_key_first($res));
8888
$end = max(array_key_last($res), $last);
89+
/*
90+
$res = [];
91+
$start = 214;
92+
*/
8993

9094
for ($layer = $start; $layer <= $end; $layer++) {
9195
if (!isset($res[$layer])) {

0 commit comments

Comments
 (0)