Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8a0ad83

Browse filesBrowse files
bors[bot]Henrik Tjäder
andauthored
Merge #60
60: Remove `tasks: Task` r=korken89 a=AfoHT Fixes #54 Co-authored-by: Henrik Tjäder <henrik@grepit.se>
2 parents d150a6b + 7c65453 commit 8a0ad83
Copy full SHA for 8a0ad83

File tree

Expand file treeCollapse file tree

1 file changed

+0
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-14
lines changed

‎src/analyze.rs

Copy file name to clipboardExpand all lines: src/analyze.rs
-14Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use core::cmp;
44
use std::collections::{BTreeMap, BTreeSet, HashMap};
55

66
use indexmap::{IndexMap, IndexSet};
7-
use quote::format_ident;
87
use syn::{Ident, Type};
98

109
use crate::{
@@ -60,12 +59,6 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
6059
}))
6160
.collect();
6261

63-
// Create the list of task Idents
64-
let tasks: Vec<_> = task_resources_list
65-
.iter()
66-
.map(|x| format_ident!("{}", x.0))
67-
.collect();
68-
6962
let mut error = vec![];
7063
let mut lf_res_with_error = vec![];
7164
let mut lf_hash = HashMap::new();
@@ -283,7 +276,6 @@ pub(crate) fn app(app: &App) -> Result<Analysis, syn::Error> {
283276
channels,
284277
shared_resources: used_shared_resource,
285278
local_resources: used_local_resource,
286-
tasks,
287279
ownerships,
288280
send_types,
289281
sync_types,
@@ -302,9 +294,6 @@ pub type Resource = Ident;
302294
/// Task name
303295
pub type Task = Ident;
304296

305-
/// List of tasks names
306-
pub type Tasks = Vec<Ident>;
307-
308297
/// The result of analyzing an RTIC application
309298
pub struct Analysis {
310299
/// SPSC message channels
@@ -322,9 +311,6 @@ pub struct Analysis {
322311
/// accessed) resource and the backend should not generate code for it
323312
pub local_resources: UsedLocalResource,
324313

325-
/// A vector containing all task names
326-
pub tasks: Tasks,
327-
328314
/// Resource ownership
329315
pub ownerships: Ownerships,
330316

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.